package org.batatasframework.support.charts.baidu;

public class ChartToolboxFeature {
	private Mark mark;
	private DataView dataView;
	private MagicType magicType;
	private Restore restore;
	private SaveAsImage saveAsImage;
	
	public void init(){
		this.mark = new Mark();
		this.dataView = new DataView();
		this.magicType = new MagicType();
		this.restore = new Restore();
		this.saveAsImage = new SaveAsImage();
		this.mark.setShow(true);
		this.dataView.setShow(true);
		this.dataView.setReadOnly(false);
		this.magicType.setShow(true);
		this.magicType.setType(new String[]{"line","bar","stack","tiled"});
		this.restore.setShow(true);
		this.saveAsImage.setShow(true);
	}

	public Mark getMark() {
		return mark;
	}

	public void setMark(Mark mark) {
		this.mark = mark;
	}
	
	public DataView getDataView() {
		return dataView;
	}

	public void setDataView(DataView dataView) {
		this.dataView = dataView;
	}

	public MagicType getMagicType() {
		return magicType;
	}

	public void setMagicType(MagicType magicType) {
		this.magicType = magicType;
	}

	public Restore getRestore() {
		return restore;
	}

	public void setRestore(Restore restore) {
		this.restore = restore;
	}

	public SaveAsImage getSaveAsImage() {
		return saveAsImage;
	}

	public void setSaveAsImage(SaveAsImage saveAsImage) {
		this.saveAsImage = saveAsImage;
	}

	class Mark {
		private boolean show=true;

		public boolean isShow() {
			return show;
		}

		public void setShow(boolean show) {
			this.show = show;
		}
	}
	
	class DataView {
		private boolean show=true;
		private boolean readOnly=true;
		public boolean isShow() {
			return show;
		}
		public void setShow(boolean show) {
			this.show = show;
		}
		public boolean isReadOnly() {
			return readOnly;
		}
		public void setReadOnly(boolean readOnly) {
			this.readOnly = readOnly;
		} 
	}
	
	class MagicType {
		private boolean show;
		private String[] type={"line","bar","stack","tiled"};
		public boolean isShow() {
			return show;
		}
		public void setShow(boolean show) {
			this.show = show;
		}
		public String[] getType() {
			return type;
		}
		public void setType(String[] type) {
			this.type = type;
		}
		
	}

	class Restore {
		private boolean show=true;

		public boolean isShow() {
			return show;
		}

		public void setShow(boolean show) {
			this.show = show;
		}
	}
	
	class SaveAsImage {
		private boolean show=true;

		public boolean isShow() {
			return show;
		}

		public void setShow(boolean show) {
			this.show = show;
		}
	}
}
